package com.hbm.usercenter.protocol;

import android.text.TextUtils;

import com.hbm.usercenter.base.BaseProtocol;
import com.hbm.usercenter.bean.OrderBean;
import com.hbm.usercenter.utils.JsonUtil;
import com.hbm.usercenter.utils.LogUtils;

import java.util.HashMap;
import java.util.Map;

/**
 * Created by BS on 2017/6/20.
 */

public class OrderAllProtocol extends BaseProtocol<OrderBean> {
    @Override
    protected OrderBean parseJson(String result) {
        if (TextUtils.isEmpty(result)) {
            LogUtils.s("cao  空的！！！");
        }

        return JsonUtil.parseJson(result,OrderBean.class);
    }

    @Override
    protected String getInterfaceKey() {
        return "deal/dealOrder/index.do";
    }

    @Override
    protected Map<String, String> getExtraParams() {
        Map<String, String> params = new HashMap<String, String>();
        params.put("pid","0");
        params.put("is_json","1");
        params.put("pay_status","-1");
        return params;
    }
}
